package demo16;

/**
 * @program: qy158
 * @description:
 * @author: 闫克起2
 * @create: 2022-11-01 10:59
 **/
public class Boy extends Thread {
    private BankCard bankCard;
    public Boy(BankCard bankCard){
        this.bankCard=bankCard;
    }
    @Override
    public void run() {
        for (int i = 0; i <10 ; i++) {
           bankCard.save(1000);
        }
    }
}
